import { BaseEntity } from '../../base/entity/base';
import { Column, Entity } from 'typeorm';

/**
 * 用户足迹
 */
@Entity('user_footprint')
export class UserFootprintEntity extends BaseEntity {
    @Column({ comment: '用户ID' })
    userId: number;

    @Column({ comment: '商品ID' })
    goodsId: number;

    @Column({ comment: '访问次数', default: 1 })
    visitCount: number;

    @Column({ comment: '最后访问时间', type: 'timestamp' })
    lastVisitTime: Date;
} 